﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ResourcePool
{
    class PoolMain
    {
        static void Main()
        {
            Resource a = Resource.Get();
            using (a)
            {
                a.Res = "sdsd";
            }
            Resource v = Resource.Get();
            Console.WriteLine(Resource.CountAvailable());
            Console.WriteLine(Resource.countOfAllResources);
        }
    }
}
